package a_file;

import java.io.File;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package a_file
 * @date 2024/4/12 下午2:15
 */
public class Test05 {
    public static void main(String[] args) {

        File file = new File("D:\\images");
        File[] d = file.listFiles();
        for (File file1 : d) {
            String string = file1.toString();
            if (string.endsWith(".png")) {
                System.out.println(file1);
            }
        }
    }
}
